package com.youxue.teachin.main;

import android.content.Intent;
import android.view.View;
import com.youxue.teachin.common.utils.PreContent;
import com.youxue.teachin.common.utils.PreferencesUtils;
import com.youxue.teachin.common.utils.SchemaParam;
import com.youxue.teachin.webplugin.WebViewParam;

/**
 * 摘录
 *
 * @author: zhiwei
 * @date: 2017-10-08 14:53
 * @version: 9.1.0
 */
public class ZhaiLuActivity extends MainWebBaseActivity {

    @Override
    protected void setBusinessView(View businessView) {
        Intent intent = getIntent();
        if (intent == null) {
            intent = new Intent();
            setIntent(intent);
        }
        String url = PreferencesUtils.getString(PreContent.ZHAILU, "");
        WebViewParam param = new WebViewParam();
        param.mUrl = url;
        param.mNeedRefresh = true;
        param.mTitle = "摘录";
        param.mTitleLock = true;
        param.mNeedActionBack = false;
        intent.putExtra(SchemaParam.PARAM_WEBVIEW, param);
        super.setBusinessView(businessView);
    }

    @Override
    protected void onInitActionBar() {
        super.onInitActionBar();
        setTitle("摘录");
    }

    //@Override
    //protected void loadWebView() {
    //    super.loadWebView();
    //    String url = PreferencesUtils.getString(PreContent.FAXIAN, "");
    //    load(url);
    //}
}
